const columnsConfig = ['selection','operation'
    , 'sid'
    , 'tradeCode'
    , 'emsNo'
    , 'apprMaxSurpQty'
    , 'chgApprTime'
    , 'classMark'
    , 'codeTS'
    , 'copEmsNo'
    , 'copGNo'
    , 'curr'
    , 'cusExeMark'
    , 'decPrice'
    , 'dutyMode'
    , 'etpsExeMark'
    , 'gModel'
    , 'gName'
    , 'gNo'
    , 'initialQty'
    , 'insertTime'
    , 'insertUser'
    , 'modifyMark'
    , 'msgDecMark'
    , 'note'
    , 'putrecApprTime'
    , 'qty'
    , 'qtyCtrlFlag'
    , 'unit'
    , 'unit1'
    , 'unit2'
    , 'updateTime'
    , 'updateUser'
    , 'timeStamp'
]
const columns = {
  data() {
    return {
      totalColumns: [
        {
          type: 'selection',
          width: 60,
          align: 'center',
          key: 'selection',
        },
        {
          title: '操作',
          width: 120,
          align: 'center',
          render: (h,params) => {
            return h('div', [
              //添加查看按钮
              h('a', {
                props: {
                  type: 'primary',
                },
                style: {},
                on: {
                  click: () => {
                    this.gridConfig.selectData = params.row
                    this.handleView()
                  },
                },
              }, '查看')
                    ]);
          },
          key: 'operation'
        },
        {
          title: '商品编码',
          minWidth: 120,
          align: 'center',
          key: 'codeTS',
        },
        {
          title: '料号',
          minWidth: 120,
          align: 'center',
          key: 'copGNo',
        },
        {
          title: '规格型号',
          minWidth: 120,
          align: 'center',
          key: 'gModel',
        },
        {
          title: '商品名称',
          minWidth: 120,
          align: 'center',
          key: 'gName',
        },
        {
          title: '序号',
          minWidth: 120,
          align: 'center',
          key: 'gNo',
        },
        {
          title: '法定计量单位',
          minWidth: 120,
          align: 'center',
          key: 'unit1',
        },
        {
          title: '第二计量单位',
          minWidth: 120,
          align: 'center',
          key: 'unit2',
        },
      ]
    }
  }
}
export {
  columns,
  columnsConfig
}
